package c.x.jy.dao.dao;

import c.x.jy.dao.dto.BusinessWalletEntityDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import c.x.jy.dao.entity.BusinessWalletEntity;

/**
 * 商家钱包表
 * 
 * @author amwhyh
 * @email xxx@xx.com
 * @date 2021-05-21 11:28:25
 */
@Mapper
public interface BusinessWalletDao extends BaseMapper<BusinessWalletEntity> {
  @Select("select * from t_business_wallet where id=${id} for update")
	BusinessWalletEntity selectbusinessWallentByBusinessIdForUpdate(Long id);

    @Select("select * from t_business_wallet where business_id=${businessId}")
    BusinessWalletEntityDto getDtoById(Long businessId);
}

